package com.lantosec.hmrp.modules.warning.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.modules.warning.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 预警规则 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-05-19
 */
public interface WarningRuleMapper extends BaseMapper<WarningRule> {

    void saveWarningRuleEval(@Param("evalItemId") String it, @Param("ruleId") String ruleId);

    void saveWarningNotifier(@Param("param") WarningNotifier it, @Param("ruleId") String ruleId);

    void saveWarningMessage(@Param("param") WarningMessage it, @Param("ruleId") String ruleId);

    void saveWarningReported(@Param("param") WarningReported it, @Param("ruleId")String ruleId);

    void deleteWarningNotifier(String ruleId);

    void deleteWarningNotifierDept(String ruleId);

    void deleteWarningRuleEval(String ruleId);

    void deleteWarningMessage(String ruleId);

    void deleteWarningReported(String ruleId);

    List<WarningRuleEval> selectWarningRuleEval(String id);

    void changeState(@Param("id") String id, @Param("state") Integer state);
}
